package cn.woniu.ecommerceplatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @TableName t_comments
 */
@TableName(value ="t_comments")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comments implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品code
     */
    @TableField(value = "goods_code")
    private String goodsCode;

    /**
     * 评论者id(会员)
     */
    @TableField(value = "customer_id")
    private Integer customerId;

    /**
     * 评论时间
     */
    @TableField(value = "comments_time")
    private Date commentsTime;

    /**
     * 评分(0到5分)
     */
    @TableField(value = "score")
    private Double score;

    /**
     * 评论内容
     */
    @TableField(value = "comments")
    private String comments;

    /**
     * 店家回复
     */
    @TableField(value = "reply")
    private String reply;

    /**
     * 
     */
    @TableField(value = "is_top")
    private Integer isTop;
    @TableField(value = "is_visiable")
    private Integer isVisiable;

    private String customerName;


}